﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Result.aspx.cs" Inherits="HealthSystem.Result" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
     <form id="form1" runat="server">
   <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panle1" />
     <ext:Panel  runat="server" ID="panle1" Layout="Fit" Title="体检结果查询">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Form runat="server" Width="1300px" ShowHeader="false">
                        <Rows>
                            <ext:FormRow>
                                <Items>
                                    <ext:Panel runat="server" Layout="Column" ShowBorder="false" ShowHeader="false"  BodyPadding="4px" EnableBackgroundColor="true">
                                        <Items>
                                            <ext:Label runat="server" Text="选择地区："></ext:Label>
                                            <ext:TriggerBox runat="server" ID="districtname" Label="选择地区" EnableEdit="false"></ext:TriggerBox>
                                             <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                                            <ext:HiddenField runat="server" ID="actionbt"></ext:HiddenField>
                                            <ext:Label ID="Label1" runat="server" Text="选择学校："></ext:Label>
                                            <ext:TriggerBox runat="server" ID="chooseSchool" Label="选择学校" OnTriggerClick="school_click"></ext:TriggerBox>
                                            <ext:Label runat="server" Text="包含合并记录"></ext:Label>
                                            <ext:CheckBox runat="server" ID="ismerge"></ext:CheckBox>
                                            <ext:HiddenField runat="server" ID="Schoolcode"></ext:HiddenField>
                                            <ext:Label ID="Label2" runat="server" CssStyle=".margin-left:30px" Text="体检年份："></ext:Label>
                                            <ext:DropDownList runat="server" ID="chooseyear" Label="体检年份"></ext:DropDownList>
                                        </Items>
                                    </ext:Panel>
                                    
                                </Items>
                            </ext:FormRow>
                             <ext:FormRow>
                                <Items>
                                    <ext:Panel runat="server" Layout="Column" ShowBorder="false" ShowHeader="false"  BodyPadding="4px" EnableBackgroundColor="true">
                                        <Items>
                                        <ext:Label ID="Label3" runat="server" Text="查询方式："></ext:Label>
                                             <ext:DropDownList runat="server" ID="contion" Label="查询方式">
                                        <ext:ListItem Value="xm" Text="姓名" />
                                        <ext:ListItem Value="xb" Text="性别" />
                                        <ext:ListItem Value="xh" Text="学号" />
                                        <ext:ListItem Value="school_name" Text="学校名称" />
                                        <%--<ext:ListItem Value="nl" Text="年龄" />--%>
                                    </ext:DropDownList>
                                    <ext:TextBox runat="server" ID="searchstring"></ext:TextBox>
                                    <ext:Button runat="server" ID="searchnt" OnClick="Search_Clik" Icon="SystemSearch" Text="查询"></ext:Button>
                                        </Items>
                                    </ext:Panel>
                                   
      
                                </Items>
                            </ext:FormRow>
                        </Rows>
                    </ext:Form>
                      
                  <%--    <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                      <ext:HiddenField runat="server" ID="actionbt"></ext:HiddenField>
                      <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
                      <ext:TriggerBox runat="server" Text="搜索" ID="searchbox" EmptyText="输入查询" TriggerIcon="Search" OnTriggerClick="Search_Clik"></ext:TriggerBox>
                     <ext:ToolbarFill ID="ToolbarFill1" runat="server"></ext:ToolbarFill>
                     <ext:Button runat="server" Text="新增学校" ID="Newbt"></ext:Button>--%>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid runat="server" ID="Gird1" DataKeyNames="bh,SchoollCode" EnableTextSelection="true" AllowPaging="true" IsDatabasePaging="true" EnableRowNumber="true"
             OnRowDoubleClick="Grid1_DoubleClick" OnRowCommand="rowcommand" EnableRowDoubleClick="true" ShowHeader="false" OnPageIndexChange="PageIndexChange" PageSize="30">
                <Columns>
                   <%-- <ext:BoundField DataField="CityName" HeaderText="所属城市" />
                    <ext:BoundField DataField="DistrictName" HeaderText="所属区县" />
                    <ext:BoundField DataField="name" HeaderText="学校" />
                    <ext:BoundField DataField="ClassName" HeaderText="班级" />
                    <ext:BoundField DataField="studentname" HeaderText="名字" />
                    <ext:BoundField DataField="sex" HeaderText="性别" Width="60px" />
                    <ext:BoundField DataField="BornDate" HeaderText="出生年月" />
                    <ext:BoundField DataField="Nation" HeaderText="名族" />
                    <ext:BoundField DataField="SY" HeaderText="生源" />
                    <ext:BoundField DataField="NL" HeaderText="年龄" />
                       <ext:LinkButtonField HeaderText="体检结果" TextAlign="Center" 
                ColumnID="lbfAction1" Width="90px" CommandName="download" Text="体检结果" />
                    <%--<ext:LinkButtonField Text="文档" serc />--%>


                     <ext:BoundField DataField="CityName" HeaderText="所属城市" Width="60px" />
                    <ext:BoundField DataField="DistrictName" HeaderText="所属区县" Width="60px" />
                    <ext:BoundField DataField="School_name" HeaderText="学校" Width="140px" />
                    <ext:BoundField DataField="Class_Name" HeaderText="班级" Width="140px" />
                    <ext:BoundField DataField="xm" HeaderText="名字" Width="60px" />
                    <ext:BoundField DataField="XB" HeaderText="性别" Width="40px" />
                    <ext:BoundField DataField="CSRQ" HeaderText="出生年月" Width="80px" />
                    <ext:BoundField DataField="MZ" HeaderText="名族" Width="40px"/>
                    <ext:BoundField DataField="SY" HeaderText="生源" Width="40px" />
                    <ext:BoundField DataField="NL" HeaderText="年龄" Width="40px" />
                      <ext:HyperLinkField HeaderText="体检结果" Text="体检结果" Width="80px"
                DataTextFormatString="{0}" DataNavigateUrlFields="bh,tjnd" DataNavigateUrlFormatString="resultinfo.aspx?tjnd={1}&studentid={0}" DataNavigateUrlFieldsEncode="true"
                Target="_blank" />
                  <ext:HyperLinkField HeaderText="体检单" Text="体检单" Width="80px"
                DataTextFormatString="{0}" DataNavigateUrlFields="bh,tjnd" DataNavigateUrlFormatString="resultdetail.aspx?tjnd={1}&studentid={0}" DataNavigateUrlFieldsEncode="true"
                Target="_blank"  />

                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="200px" Height="550px">
    </ext:Window>
      <ext:Window ID="Window2" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="500px" Height="550px">
    </ext:Window>
    </form>
</body>
</html>
